#include "RHIPipeline.h"
#include "../../Utils/LogUtil.h"
#include <algorithm>
#include "../RenderState.h"

RHIPipeline::~RHIPipeline()
{
	// vkDestroyPipeline(GVulkanRHI->GetLogicalDevice(), mPipeline, nullptr);
	GRenderState->DelayGCPipeline(mPipeline);
}

VkPipeline RHIPipeline::GetPipeline() const
{
	return mPipeline;
}

VkPipelineLayout RHIPipeline::GetPipelineLayout() const
{
	return mDescriptor->GetPipelineLayout();
}

inline RefCountPtr<RHIDescriptor> RHIPipeline::GetDescriptor() const
{
	return mDescriptor;
}

